var document = [
  {
    title: "引入示例",
    code: `import { $time } from "../../utils/index"`
  },
  {
    title: "timeToDateObj - 时间戳转换为对象",
    funcDesc: [
      {
        text: "时间戳",
        class: ""
      },
      {
        text: "（毫秒）",
        class: "code"
      },
      {
        text: "转换为时间对象，里面包含了各种的时间对象",
        class: ""
      },
      {
        text: "时间戳、年月日等",
        class: "code"
      }
    ],
    code: `var timeObj = $time.timeToDateObj(new Date().getTime())`,
    funcData: [{ name: "time", type: "Number", desc: "毫秒级时间戳，非必传，默认获取当前时间" }]
  },
  {
    title: "formateTime - 格式化时间戳",
    funcDesc: [
      {
        text: "传入时间戳",
        class: ""
      },
      {
        text: "（毫秒）",
        class: "code"
      },
      {
        text: "和传入想要的时间格式。比如",
        class: ""
      },
      {
        text: "yyyy年mm月dd HH:ii:ss",
        class: "code"
      },
      {
        text: "即可得到相关的字符串时间，如果传入",
        class: ""
      },
      {
        text: "HH",
        class: "code"
      },
      {
        text: "即代表显示的是两位数的时间格式（前置补0）。其他同理",
        class: ""
      }
    ],
    code: `$time.formateTime(new Date().getTime(),'yyyy年mm月dd')`,
    funcData: [
      { name: "time", type: "Number", desc: "毫秒级时间戳，非必传，默认获取当前时间" },
      { name: "format", type: "String", desc: "需要格式的时间格式" }
    ]
  },
  {
    title: "getTimeCounter - 时间戳倒计时",
    funcDesc: [
      {
        text: "获取指定时间段的倒计时。判断倒计时是否已经结束",
        class: ""
      }
    ],
    code: `$time.getTimeCounter(endTime: new Date('2020-10-10'))`,
    funcData: [
      { name: "startTime", type: "Number", desc: "倒计时开始的时间，非必传，默认为当前时间" },
      { name: "endTime", type: "Number", desc: "倒计时结束时间，必传" }
    ]
  }
]

module.exports = document
